import type { FileModel } from '#/api';

export namespace DefTenantModel {
  export interface DefTenantPageQuery {
    id?: string;
    name?: string;
    code?: string;
    abbreviation?: string;
    creditCode?: string;
    contactPerson?: string;
    contactPhone?: string;
    contactEmail?: string;
    provinceId?: string;
    provinceName?: string;
    cityId?: string;
    cityName?: string;
    districtId?: string;
    districtName?: string;
    address?: string;
    registerType?: string;
    connectType?: string;
    status?: string;
    state?: boolean;
    reviewComments?: string;
    readonly?: boolean;
    createdName?: string;
    expirationTime?: string;
    describe?: string;
    createdTime?: string;
    createdBy?: string;
    updatedTime?: string;
    updatedBy?: string;
  }

  export interface DefTenantSaveVO {
    name: string;
    code: string;
    abbreviation?: string;
    creditCode?: string;
    contactPerson?: string;
    contactPhone?: string;
    contactEmail?: string;
    provinceId?: string;
    provinceName?: string;
    cityId?: string;
    cityName?: string;
    districtId?: string;
    districtName?: string;
    address?: string;
    state?: boolean;
    createdName?: string;
    expirationTime?: string;
    describe?: string;
    logo?: string;
    logos?: FileModel.FileResultVO[];
  }

  export interface DefTenantUpdateVO {
    id: string;
    name: string;
    code: string;
    abbreviation?: string;
    creditCode?: string;
    contactPerson?: string;
    contactPhone?: string;
    contactEmail?: string;
    provinceId?: string;
    provinceName?: string;
    cityId?: string;
    cityName?: string;
    districtId?: string;
    districtName?: string;
    address?: string;
    state?: boolean;
    createdName?: string;
    expirationTime?: string;
    describe?: string;
    logo?: string;
  }

  export interface DefTenantResultVO {
    echoMap?: any;
    id?: string; // 主键ID
    createdTime?: string; // 创建时间
    parentName?: string; // 上级名称--零时字段
    createdBy?: string; // 创建人
    updatedTime?: string; // 修改时间
    updatedBy?: string; // 修改人
    code?: string; // 企业编码
    name?: string; // 企业名称
    abbreviation?: string; // 企业简称
    creditCode?: string; // 统一社会信用代码
    contactPerson?: string; // 联系人
    contactPhone?: string; // 联系方式
    contactEmail?: string; // 联系邮箱
    provinceId?: string; // 省
    provinceName?: string; // 省
    cityId?: string; // 市
    cityName?: string; // 市
    districtId?: string; // 区
    districtName?: string; // 区
    address?: string; // 详细地址
    longitude?: string; // 经度
    latitude?: string; // 纬度
    businessTime?: string; // 营业时间
    registerType?: string; // 类型
    connectType?: string; // 数据源链接类型
    classify?: string; // 分类
    state?: boolean; // 状态
    status?: string; // 审核状态
    reviewComments?: string; // 审核意见
    readonly?: boolean; // 内置
    expirationTime?: string; // 有效期
    describe?: string; // 企业简介
    createdName?: string; // 创建人姓名

    employeeState?: boolean;
    isDefault?: boolean;
    logo?: string;
    area?: string[];
    orgList?: any[];
  }

  export interface DefTenantInitVO {
    id: string;
    connectType?: string;
    baseDatasourceId?: string;
    extendDatasourceId?: string;
  }

  export interface ReviewComment {
    id: string;
    status: string;
    reviewComments?: string;
  }
}
